﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using DevComponents.DotNetBar.Metro;

using Bussiness_Objects;
using DataObjects.ADO;
using DevComponents.AdvTree;

namespace WindowsFormsApplication1
{
    public partial class CTDocGiaMuonSach : MetroAppForm
    {
        CuonSach _cuonSach = new CuonSach();

        public CTDocGiaMuonSach(int maCuonSach)
        {
            InitializeComponent();
            _cuonSach.MaCuonSach = maCuonSach;
            createTree();
            
        }

        private void createTree()
        {
            advTree.Nodes.Add(createNodeTree());
        }

        private Node createNodeTree()
        {
            Node node = new Node("1");
            node.Cells.Add(new Cell("Sách A"));
            node.Cells.Add(new Cell(DateTime.Today.ToShortDateString()));
            return node;
        }
    }
}
